-- GENERATED SPELL FOR [Grimtotem Reaver] --


function spell0_10761(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10761', 613, 1)
end

function spell1_10761(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10761', 619, 1)
end

function Sorts_10761(pUnit, Event)
local choix_sorts_10761 = math.random(0, 1)
if choix_sorts_10761 == 0 then
pUnit:RegisterEvent('spell0_10761', 1, 1)
end
if choix_sorts_10761 == 1 then
pUnit:RegisterEvent('spell1_10761', 1, 1)
end
end

function mob10761_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10761', math.random(1500, 3000), 1)
end

function mob10761_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10761_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10761_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10761, 1, 'mob10761_Action')
RegisterUnitEvent(10761, 2, 'mob10761_Leave')
RegisterUnitEvent(10761, 3, 'mob10761_Kill')
RegisterUnitEvent(10761, 4, 'mob10761_Die')
